<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var user = {
            name:"woo",
            age:3,
            sex:"男"
        };
        var json = JSON.stringify(user);
        console.log(json);

        var obj = JSON.parse(json)
        console.log(obj)
    </script>
</head>
<body>

</body>
</html>